import type { RouteRecordRaw } from 'vue-router'

const user: RouteRecordRaw[] = [
  {
    path: 'user/list/:groupId?',
    name: 'UserList',
    component: () => import('@/views/modules/user/UserList.vue')
  },
  {
    path: 'user/group',
    name: 'UserGroupList',
    component: () => import('@/views/modules/user/GroupList.vue')
  },
  {
    path: 'user/:id/detail',
    name: 'UserDetail',
    component: () => import('@/views/modules/user/detail/UserDetail.vue'),
    meta: {
      currentActiveMenu: 'UserList'
    }
  },
  {
    path: 'user/domain-add/:userId?',
    name: 'UserDomainAdd',
    component: () => import('@/views/modules/user/domain/DomainAddView.vue')
  },
  {
    path: 'user/:id/domain-manager',
    name: 'ManagerUserDomain',
    component: () => import('@/views/modules/user/domain/DomainManager.vue'),
    meta: {
      currentActiveMenu: 'UserList'
    }
  }
]

export default user
